//part1:C01:ex1.21.cpp -- read two instance of Sales_item, output them.
#include <iostream>
#include "Sales_item.h"
int main(void)
{
    Sales_item trans1, trans2;
    std::cout << "Enter two same of ISBN records:\n";
    std::cin >> trans1 >> trans2;
    if (compareIsbn(trans1, trans2))
    {
        std::cout << "total of ISBN, volume, money of sales, ave_price: "
            << trans1 + trans2 << std::endl;
    }
    else
    {
        std::cout << "differences of two sales records: " << std::endl;
    }
    return 0;
}
